package com.gss.module.translate.constants;

/**
 * @author DYang
 * @date 2023/6/6
 * 使用模式
 */
public enum ModeType {

    CHROME_DRIVER("chrome_driver","chrome_driver")
    ;
    public final String MODE;
    public final String DESC;

    ModeType(String MODE, String DESC) {
        this.MODE = MODE;
        this.DESC = DESC;
    }

    public static ModeType getModeType(String mode){
        ModeType[] values = values();
        for (ModeType value : values) {
            if (mode.equals(value.MODE)) {
                return value;
            }
        }
        return null;
    }
}
